package com.awakening.o2o.service;

import com.awakening.o2o.dto.ImageHolder;
import com.awakening.o2o.dto.ShopExecution;
import com.awakening.o2o.entity.Shop;
import com.awakening.o2o.exception.ShopOperationException;

/**
 * @Author:这个程序员有纹身
 * @Date: Created in 17:26 2018\1\6 0006
 */
public interface ShopService {

    /**
     * 根据shopCondition 分页返回相应列表数据
     * @param shopCondition
     * @param pageIndex
     * @param pageSize
     * @return
     */
    ShopExecution getShopList(Shop shopCondition, int pageIndex, int pageSize);

    /**
     * 通过店铺Id获取店铺信息
     * @param shopId
     * @return
     */
    Shop getByShopId(long shopId);

    /**
     * 更新店铺信息，包括对图片处理
     * @param shop
     * @return
     */
    ShopExecution modifyShop(Shop shop, ImageHolder thumbnail)throws ShopOperationException;

    /**
     * 注册店铺信息，包括图片处理
     * @param shop
     * @return
     */
    ShopExecution addShop(Shop shop, ImageHolder thumbnail)throws ShopOperationException;
}
